home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Shell_Sprite_h
- #define __Shell_Sprite_h
-
- #ifndef __Shell_h
- #include "Shell.Shell.h"
- #endif
-
- Shell_rectblock *Shell_AddSpriteRect(
- Shell_windblock *wind,
- int x,
- int y,
- int xsize,
- int ysize
- );
- /* Allocates memory for a sprite of the size and position specified. */
- /* The sprite will be in the present screen mode. */
- /* To plot to this sprite, use: */
-
- void Shell_RedirectToSprite( Shell_rectblock *rectblock);
- /* Call this to make all subsequent ploting go to the spriterect. */
- /* Sprite plotting has (0,0) at the bottom-left of the sprite. */
- void Shell_UnRedirect( void);
- /* Call this to go back to plotting to the screen. */
-
- /* NB don't call Shell/Wimp/Event_Poll while output is redirected, */
-
-
- extern const Shell_convertpoint Shell_nullconvert;
- /* This is a convert point which is {0, 0}, so if you pass it to */
- /* things like Shell_Circle, the Shell function will work exactly */
- /* same as the standard GFX functions, with the origin at the bottom- */
- /* -left of the screen. */
-
- #endif
-